package com.team11.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.team11.server.pojo.ClockInformation;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pjc
 * @since 2021-07-06
 */
public interface ClockInformationMapper extends BaseMapper<ClockInformation> {

    /**
     * 获取门禁记录
     * @param page
     * @param sNumber
     * @param sName
     */
    IPage<ClockInformation> getAccessControl(IPage<ClockInformation> page, @Param("startTime") LocalDate startTime,
                                             @Param("endTime") LocalDate endTime, @Param("sNumber") String sNumber,
                                             @Param("sName") String sName);
    /**
     * 获取门禁记录
     * @param page
     * @param sNumber
     */
    IPage<ClockInformation> getStudentAccessControl(IPage<ClockInformation> page, @Param("startTime") LocalDate startTime,
                                                    @Param("endTime") LocalDate endTime,
                                                    @Param("sNumber") String sNumber);

}
